<template>
  我是child2：
  <Input type="text" v-model="number"></Input>
</template>

<script>
import { ref, inject } from "vue";

export default {
  setup() {
    // const number = ref(inject("input-number"));
    const number = inject("input-number");
    return {
      number
    };
  }
};
</script>